package com.openlogic.flow.domain.entity;

import java.util.ArrayList;
import java.util.List;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.openlogic.common.core.web.domain.BaseEntity;

/**
 * @ClassName: FlowCategory
 * @Description: 流程类型 实体层
 * @author weiyongpeng
 * @date 2025年2月11日 下午8:14:34
 */
@Table("FLOW_CATEGORY")
public class FlowCategory extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@Id(keyType = KeyType.Auto)
	private Integer id;

	/**
	 * 树节点等级
	 */
	private Long treeLevel;

	/**
	 * 父id
	 */
	private String parentId;

	/**
	 * 名称
	 */
	private String name;

	/**
	 * 删除状态 1启用 0 停用
	 */
	private String status;

	/**
	 * 流程类型
	 */
	private String type;

	/** 子部门 */
	@Column(ignore = true)
	private List<FlowCategory> children = new ArrayList<>();

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Long getTreeLevel() {
		return treeLevel;
	}

	public void setTreeLevel(Long treeLevel) {
		this.treeLevel = treeLevel;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public List<FlowCategory> getChildren() {
		return children;
	}

	public void setChildren(List<FlowCategory> children) {
		this.children = children;
	}

}
